require 'test/unit'
require 'semantictext/keyword_extractor' 

class TestKeywordExtractor< Test::Unit::TestCase

	def test_extract_keywords_happy_case
		unit = SemanticText::KeywordExtractor.new
		assert_equal ['a','b','c','d'], unit.extract_from(' a , b , c , d ')
		assert_equal ['a','b','c','d'], unit.extract_from(' a , b , c    ,     d ')
		assert_equal ['a','b','c','d'], unit.extract_from('a,b,c,d')
	end
	
end
